package com.mida.dms.knw.mapper;

import com.mida.dms.knw.entity.KnwNoumenonUserSpace;
import com.mida.dms.knw.entity.vo.KnwNoumenonUserSpaceVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface KnwNoumenonUserSpaceMapper {
    int deleteByPrimaryKey(Long noumenonSpaceSoid);

    int deleteByNoumenonSoid(Long noumenonSoid);

    int deleteByNoumenonSoidAndUseSpaceSoid(@Param(value = "noumenonSoid") Long noumenonSoid, @Param(value = "useSpaceSoid") Long useSpaceSoid);

    int insert(KnwNoumenonUserSpace record);

    int insertSelective(KnwNoumenonUserSpace record);

    KnwNoumenonUserSpace selectByPrimaryKey(Long noumenonSpaceSoid);

    int updateByPrimaryKeySelective(KnwNoumenonUserSpace record);

    int updateByPrimaryKey(KnwNoumenonUserSpace record);

    Integer countUseSpace(Long useSpaceSoid);

    List<Long> getUseSpaceList(Long noumenonSoid);

    List<KnwNoumenonUserSpaceVo> getUseSpaceCodeAndName(Long noumenonSoid);

    void bulkInsertknwNoumenonUserSpace(@Param("knwNoumenonUserSpaces") List<KnwNoumenonUserSpace> knwNoumenonUserSpaces);

    void batchCancelknwNoumenonUserSpace(@Param("knwNoumenonUserSpaces") List<KnwNoumenonUserSpace> knwNoumenonUserSpaces);
}